projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e331b36
)
GtkListBox: ref_sink new object in set_header and set_adjustment
author
Alexander Larsson
<alexl@redhat.com>
Wed, 4 Sep 2013 19:00:23 +0000
(21:00 +0200)
committer
Alexander Larsson
<alexl@redhat.com>
Wed, 4 Sep 2013 19:01:50 +0000
(21:01 +0200)
These are taking ownership of the object in the hierarchy, so should
sink any floating refs to make it easy to use in C code.
gtk/gtklistbox.c
patch
|
blob
|
history
diff --git
a/gtk/gtklistbox.c
b/gtk/gtklistbox.c
index f9545a578e775127037ee209e33cd128d435641d..9d2d07141aa53130e3ebd6aef6f14bb282be7c85 100644
(file)
--- a/
gtk/gtklistbox.c
+++ b/
gtk/gtklistbox.c
@@
-626,7
+626,7
@@
gtk_list_box_set_adjustment (GtkListBox *list_box,
g_return_if_fail (list_box != NULL);
- g_object_ref (adjustment);
+ g_object_ref
_sink
(adjustment);
if (priv->adjustment)
g_object_unref (priv->adjustment);
priv->adjustment = adjustment;
@@
-2736,7
+2736,7
@@
gtk_list_box_row_set_header (GtkListBoxRow *row,
priv->header = header;
if (header)
- g_object_ref (header);
+ g_object_ref
_sink
(header);
}
/**